package com.todod.base.module.base.controller.admin.datadistribute.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import com.todod.base.framework.excel.core.annotations.DictFormat;
import com.todod.base.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 数据分发设置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataDistributeRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("主键")
    private Long id;


    @Schema(description = "IP地址")
    @ExcelProperty("IP地址")
    private String ipAddress;

    @Schema(description = "端口号")
    @ExcelProperty("端口号")
    private String port;

    @Schema(description = "分发源")
    @ExcelProperty(value = "分发源", converter = DictConvert.class)
    @DictFormat("source_distribution")
    private String source;

    @Schema(description = "是否分发")
    @ExcelProperty(value = "是否分发", converter = DictConvert.class)
    @DictFormat("yes_no")
    private Integer isSend;


    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}